<?php
echo $javascript->link('ckeditor/ckeditor');
$config['height'] = 800;
?>

<div class="posts form">
<?php echo $cksource->create(__("Post",true),array('url'=>array('plugin'=>'blog','controller'=>'posts','action'=>'add')));?>
	<fieldset>
 		<legend><?php __('Add Post'); ?></legend>
	<?php
		echo $this->Form->input('name',array('class'=>'_100'));
		echo $cksource->ckeditor('content', array( 'config'=>$config));
		echo $this->Form->input('status');
	?>
	</fieldset>
<?php echo $this->Form->end(__('Submit', true));?>
</div>

<?php if($session->check('Auth.User.id')){?>
<?php echo $this->element('toolbar_actions_main',array('plugin'=>'blog','toolbar'=>'posts'))?>
<?php }?>	